<template>
  <div class="children-b-container">
    <h2>vuex使用 - 子组件B</h2>
    <div class="info">
      <h3>数据</h3>
      <ul>
        <li>name:</li>
        <li>age:</li>
        <li>friend:</li>
      </ul>
    </div>
    <div class="control"></div>
  </div>
</template>

<script>
export default {
  name: 'children-b'
}
</script>

<style lang="less">
.children-b-container {
  height: 40vh;
  width: 30vw;
  background-color: deepskyblue;
  padding: 15px;
  margin-left: 50px;
  h2 {
    margin: 20px;
    margin-top: 0;
    color: white;
  }
  .control {
    padding: 10px;
    button {
      border: none;
      cursor: pointer;
      padding: 5px 10px;
      border-radius: 5px;
      &:hover {
        background-color: #e7e7e7;
      }
    }
  }
}
</style>
